Optimal. Leaf size=37 \[ \frac {a \log \left (1-c x^n\right )}{c n}-\frac {b \text {Li}_2\left (1-c x^n\right )}{c n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 37, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {2378, 2370,
2353, 2352} \begin {gather*} \frac {a \log \left (1-c x^n\right )}{c n}-\frac {b \text {PolyLog}\left (2,1-c x^n\right )}{c n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2352
Rule 2353
Rule 2370
Rule 2378
Rubi steps
\begin {align*} \int \frac {a+b \log \left (c x^n\right )}{x \left (c-x^{-n}\right )} \, dx &=\frac {\text {Subst}\left (\int \frac {a+b \log (c x)}{\left (c-\frac {1}{x}\right ) x} \, dx,x,x^n\right )}{n}\\ &=\frac {\text {Subst}\left (\int \frac {a+b \log (c x)}{-1+c x} \, dx,x,x^n\right )}{n}\\ &=\frac {a \log \left (1-c x^n\right )}{c n}+\frac {b \text {Subst}\left (\int \frac {\log (c x)}{-1+c x} \, dx,x,x^n\right )}{n}\\ &=\frac {a \log \left (1-c x^n\right )}{c n}-\frac {b \text {Li}_2\left (1-c x^n\right )}{c n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 37, normalized size = 1.00 \begin {gather*} \frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (1-c x^n\right )+b \text {Li}_2\left (c x^n\right )}{c n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.18, size = 31, normalized size = 0.84
method | result | size |
derivativedivides | \(\frac {\frac {a \ln \left (c \,x^{n}-1\right )}{c}-\frac {b \dilog \left (c \,x^{n}\right )}{c}}{n}\) | \(31\) |
default | \(\frac {\frac {a \ln \left (c \,x^{n}-1\right )}{c}-\frac {b \dilog \left (c \,x^{n}\right )}{c}}{n}\) | \(31\) |
risch | \(\frac {b \ln \left (1-c \,x^{n}\right ) \ln \left (x^{n}\right )}{n c}-\frac {b \ln \left (1-c \,x^{n}\right ) \ln \left (c \,x^{n}\right )}{n c}-\frac {b \dilog \left (c \,x^{n}\right )}{n c}-\frac {i \ln \left (c \,x^{n}-1\right ) b \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )}{2 n c}+\frac {i \ln \left (c \,x^{n}-1\right ) b \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{2 n c}+\frac {i \ln \left (c \,x^{n}-1\right ) b \pi \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{2 n c}-\frac {i \ln \left (c \,x^{n}-1\right ) b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{2 n c}+\frac {\ln \left (c \,x^{n}-1\right ) b \ln \left (c \right )}{n c}+\frac {\ln \left (c \,x^{n}-1\right ) a}{n c}\) | \(234\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 45, normalized size = 1.22 \begin {gather*} \frac {b n \log \left (-c x^{n} + 1\right ) \log \left (x\right ) + b {\rm Li}_2\left (c x^{n}\right ) + {\left (b \log \left (c\right ) + a\right )} \log \left (c x^{n} - 1\right )}{c n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.03 \begin {gather*} \int \frac {a+b\,\ln \left (c\,x^n\right )}{x\,\left (c-\frac {1}{x^n}\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________